<%@ taglib uri="/WEB-INF/jsbundle.tld" prefix="html" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <title>Test WebApp for jsBundle taglib.</title>

    <html:script type="bundle/javascript"
                  compress="true"
                  src="bundle.js">
      /* Script loaded from the classpath. */
      classpath:/org/moyrax/test/view/js/test.js

      /* Script loaded from the web root directory. */
      test.js
    </html:script>

    <script type="text/javascript">
      function doClick() {
        TestLibFromClasspath.foo("JS from classpath!");
      }
    </script>
  </head>

  <body id="body" class="yui-skin-sam">
    <div id="Application">
      <a href="javascript:doClick()">Hello World</a>
    </div>
  </body>
</html>
